import { get } from "../../utils/request"

export default {
    namespaced: true,
    actions: {
        // 查询订单评论信息
        findAllOrderComment(context, list) {
            get('/orderComment/pageQuery', list).then(res => {
                if (res.status == 200) {
                    let response = res.data.list
                    context.commit('SET_ORDERCOMMENT', response)
                }

            })
        }
    },
    mutations: {
        SET_ORDERCOMMENT(state,response){
            state.tableData= response
        }
    },
    state: {
        tableData:[]
    },
}